// Author: Staffan Persson

// JSLint
/*jslint devel: true, browser: true */

var ASOBAUDIO = ( function() {
	// Init
	var uAgent, ios, android, head, script;
	uAgent = navigator.userAgent.toLowerCase();
	ios = (uAgent.indexOf('iphone') > -1 || uAgent.indexOf('ipad') > -1);
	android = uAgent.indexOf("android") > -1;

	// Init OS specific stuff.
	if(ios) {
		head = document.getElementsByTagName('head')[0];
		script = document.createElement('script');
		script.src = 'js/iosbridge.js';
		head.appendChild(script);
	}
		
	return {
		android : android,
		ios : ios
	};

}());
